﻿#ifndef OPTIONSWIDGET_H
#define OPTIONSWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include <QButtonGroup>
#include <QRadioButton>
#include "../../Component/Renderers/RenderManager.h"

class OptionsWidget : public QWidget
{
    Q_OBJECT
public:
    OptionsWidget(QWidget *parent = nullptr);

    RENDER_TYPE getSelectedRenderType() const;
signals:
    void renderTypeChanged(RENDER_TYPE type);

private slots:
    void selectionChanged(int id)
    {
        emit renderTypeChanged(static_cast<RENDER_TYPE>(id));
    }

private:
    QRadioButton *qtRenderButton;
    QRadioButton *qtOpenGLRenderButton;
    QRadioButton *noneRenderButton;

    QButtonGroup *buttonGroup;
};

#endif //OPTIONSWIDGET_H
